import { httpUrl } from 'api/config'
import { ajax } from 'api/axios'

export const logout = (isTenantLogin = true, data = {}) => {
  let url = `${httpUrl}/sys_wxlogout`

  if (isTenantLogin) {
    url = `${httpUrl}/rentor/sys_wxlogout`
  }

  return ajax(url, data)
}
